DISCUSSION
Use this function if you have no information about the file object passed in the
theFile
parameter. If you have already called the File System Manager function
PBGetCatInfo
, you can use the function
GetIconRefFromFolder if the object is a folder without custom icons or the function GetIconRef if the object is a file without custom icons. For more information on the
PBGetCatInfo
function, see
Inside Macintosh: Files. The
GetIconRefFromFile
function increments the reference count of the
IconRef
.